package manager.bean;

import java.util.Date;

public class Staff {
    private int id;
    private int code;
    private String name;
    private String sex;
    private Date birthday;
    private int department_id;
    private int userstate;

    @Override
    public String toString() {
        return "StaffDao{" +
                "id=" + id +
                ", code=" + code +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", department_id=" + department_id +
                ", userstate=" + userstate +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(int department_id) {
        this.department_id = department_id;
    }

    public int getUserstate() {
        return userstate;
    }

    public void setUserstate(int userstate) {
        this.userstate = userstate;
    }



    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Staff(Integer id, int code, String name, String sex, Date birthday, int department_id, int userstate) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.department_id = department_id;
        this.userstate = userstate;
    }

    public Staff() {
    }
}
